cmake_minimum_required(VERSION 3.0.0)

set(target lzm_freertos)

project(${target} VERSION 0.0.1)

# comfig compile
set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")

set(CMAKE_C_FLAGS "-m32")
set(CMAKE_CXX_FLAGS "-m32")
set(CMAKE_EXE_LINKER_FLAGS "-m32")

# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-e,entry")

# src
set(src_lzm_freertos
	app/app.c
)

add_executable(${target} ${src_lzm_freertos})

target_link_libraries(${target} PUBLIC
	pthread
	freertos_kernel
)

target_include_directories(${target} PUBLIC 
)

# include(../FreeRTOS-Kernel/CMakeLists.txt)

add_subdirectory(../FreeRTOS-Kernel build)
